﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace FILSTARTUPS_CMS.Models
{
    public class Forum
    {
        [Key]
        public int forumidPK { get; set; }
        
        [Column]        
        [Display(Name="Forum Title")]
        [Required(ErrorMessage="Forum Title is required")]
        public string forumtitle { get; set; }
        
        [Column]
        [Required(ErrorMessage="Forum Description is required")]
        [Display(Name="Forum Description")]
        public string forumdescription { get; set; }

        public int views { get; set; }
        public DateTime datecreated { get; set; }

        [Display(Name="Display Mode")]
        public int routingidFK { get; set; }
    }
    public class ForumGrid
    {
        public int forumidPK { get; set; }
        public string forumtitle { get; set; }
        public string viewtype { get; set; }

        [DisplayFormat(DataFormatString = "{0:MMMM d, yyyy}")]
        public DateTime datecreated { get; set; }
    }

    public class ForumDetails
    {
        public int forumidPK { get; set; }
        public string forumtitle { get; set; }
        public string viewtype { get; set; }
        public string forumdescription { get; set; }
    }
    /************* 

    public class ForumThread
    {
        [Key]
        public int forumthreadidPK { get; set; }
        public int memberidFK { get; set; }
        public int forumidFK { get; set; }
        public string forumtitle { get; set; }
        public string forumdescription { get; set; }
        public DateTime datecreated { get; set; }
        public string tags { get; set; }

    }
    public class ForumReply
    {
        [Key]
        public int forumreplyidPK {get;set;}
        public string forumreply {get;set;}
        public DateTime datereplied {get;set;}
        public int memberidFK {get;set;}
        public int forumthreadidFK { get; set; }
    }

    public class ForumReport
    {
        [Key]
        public int forumdreportidPK { get; set; }
        public string forumreportmsg { get; set; }
        public int memberidFK { get; set; }
        public DateTime datereported { get; set; }
    } ***************/
}